/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.corticon.dialogs.util.security;

import java.util.List;
import org.springframework.security.GrantedAuthority;
import org.springframework.security.userdetails.UserDetails;

/**
 *
 * @author Yanglifan
 */
public interface CustomUserDetails extends UserDetails {

    String getGroupName();

    void setGroupName(String groupName);

    @Override
    GrantedAuthority[] getAuthorities();

    void setAuthorities(GrantedAuthority[] authorities);

    List<String> getPermissions();

    void setPermissions(List<String> permissions);
}
